<template>
	<div></div>
</template>

<script setup>
import { reactive } from 'vue'
const operationRecords = [
	{
		userId: '495723684020717597',
		date: '2024-10-15T17:50Z',
		type: 'START_PROCESS_INSTANCE',
		result: 'NONE',
		remark: null,
		attachments: null,
		ccUserIds: null,
		activityId: null,
		showName: '提交申请',
		images: []
	},
	{
		userId: '495723684020717597',
		date: '2024-10-15T17:50Z',
		type: 'ADD_REMARK',
		result: 'NONE',
		remark: '情况属实',
		attachments: null,
		ccUserIds: null,
		activityId: null,
		showName: '评论',
		images: [
			'https://static.dingtalk.com/media/lQDPD3SqEae-eGvNH0DNEZSwc2opKbmWpagG9DH22W4TAA_4500_8000.jpg',
			'https://static.dingtalk.com/media/lQDPM4cMWoHx8GPNDCjNCgiwzemWHdceF5QG9UYSDMswAA_2568_3112.jpg',
			'https://static.dingtalk.com/media/lQDPM5MzvCO4wGPNE_7NCT6wGel0ViEgyRsG9UYTCweqAA_2366_5118.jpg',
			'https://static.dingtalk.com/media/lQDPM49uwtmTUWPNA4TNA4Sw53AhREnPY0IG9UYTkL_hAA_900_900.jpg',
			'https://static.dingtalk.com/media/lQDPD32dFhDzQWPNAZDNAZCwk-xHTzfWh-4G9UYTy29rAA_400_400.jpg',
			'https://static.dingtalk.com/media/lQDPD2otPaNYMmPNAZDNAZCwoLp0luutdkEG9UYUbiSOAA_400_400.jpg'
		]
	},
	{
		userId: '174451521530339246',
		date: '2024-10-15T17:58Z',
		type: 'REDIRECT_TASK',
		result: 'NONE',
		remark: '',
		attachments: null,
		ccUserIds: null,
		activityId: '1918_5cd3',
		showName: '审批人',
		images: []
	},
	{
		userId: '495723684020717597',
		date: '2024-10-15T17:59Z',
		type: 'EXECUTE_TASK_NORMAL',
		result: 'AGREE',
		remark: null,
		attachments: null,
		ccUserIds: null,
		activityId: '1918_5cd3',
		showName: '审批人',
		images: []
	},
	{
		userId: '223468374126362871',
		date: '2024-10-15T17:59Z',
		type: 'EXECUTE_TASK_NORMAL',
		result: 'AGREE',
		remark: '已审核同意',
		attachments: null,
		ccUserIds: null,
		activityId: '3963_cabc',
		showName: '审批人',
		images: [
			'https://static.dingtalk.com/media/lQLPD3nZ7nFOAWPNA-jNAyCwdzsz4n9iI44G9XghRT2qAA_800_1000.png',
			'https://static.dingtalk.com/media/lQLPD3nZ7nFOAWPNA-jNAyCwdzsz4n9iI44G9XghRT2qAA_800_1000.png',
			'https://static.dingtalk.com/media/lQDPD3cBbOx26WvNAyDNAyCw4EesLHNr-9wG9DHLLcE5AA_800_800.jpg',
			'https://static.dingtalk.com/media/lQDPM3_zLsJw2WvNA_DNAvSwysf6hrUYjoYG9DHLwWCmAA_756_1008.jpg',
			'https://static.dingtalk.com/media/lQDPM5AnY1NC6WvNAvjNAviwWaGQzAXcHlAG9DHL-t-5AA_760_760.jpg',
			'https://static.dingtalk.com/media/lQDPM5tMeUBB4mPNAyDNAyCwkIOm27YogQMG9XgiKFTvAA_800_800.jpg',
			'https://static.dingtalk.com/media/lQDPM50UIWdKMmPNAyDNAyCwPbO48rJrE2EG9XgiXzKtAA_800_800.jpg',
			'https://static.dingtalk.com/media/lQDPD2mAb6L17-PNAx3NAx2wgahaH-fKUkMG9XgiriAbAA_797_797.jpg',
			'https://static.dingtalk.com/media/lQDPD4BqrU-48OPNAyDNAyCwvs9I-IpsBJAG9Xgjc6CvAA_800_800.jpg'
		]
	},
	{
		userId: '495723684020717597',
		date: '2024-10-15T17:59Z',
		type: 'PROCESS_CC',
		result: 'NONE',
		remark: '',
		attachments: null,
		ccUserIds: ['174451521530339246', '495723684020717597'],
		activityId: '1cc3_959a',
		showName: '抄送人',
		images: []
	}
]

const erpUser = [
	{
		ddUserId: '495723684020717597',
		userName: '倪秀琳',
		userId: 40871,
		mobile: '13134000368',
		position: '软件测试',
		empStatusText: '正式',
		jstUserName: null,
		defaultDeptId: 916504461,
		deptName: '江西南昌分公司-IT部-测试组',
		avatar: 'https://static-legacy.dingtalk.com/media/lADPM5yLHDF1IrHNA_fNA_c_1015_1015.jpg'
	},
	{
		ddUserId: '174451521530339246',
		userName: '白金索',
		userId: 41895,
		mobile: '18110031015',
		position: '商城主管',
		empStatusText: '正式',
		jstUserName: null,
		defaultDeptId: 867246006,
		deptName: '湖北武汉分公司-IT部',
		avatar: 'https://static-legacy.dingtalk.com/media/lADPD2eDZ-I3_gjNAbjNAWY_358_440.jpg'
	},
	{
		ddUserId: '223468374126362871',
		userName: '杨炫燚',
		userId: 41674,
		mobile: '13827407004',
		position: '.net开发',
		empStatusText: '正式',
		jstUserName: null,
		defaultDeptId: 867246006,
		deptName: '湖北武汉分公司-IT部',
		avatar: 'https://static-legacy.dingtalk.com/media/lADPD2eDZtQ1L33NAoXNAeA_480_645.jpg'
	}
]

const obj = {}
for (const item of erpUser) {
	obj[item.ddUserId] = { avatar: item.avatar, userName: item.userName }
}
console.log('obj', obj)
const state = reactive({})
</script>

<style scoped lang="scss"></style>
